using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using ShopPowerTemplate.Entities;
using ShopPowerTemplate.Presentation.Mvc.Models;

namespace ShopPowerTemplate.Presentation.Mvc.ViewModels
{
	public partial class EditOrderDetailViewModel
	{

		// Entity properties
		public Int32 Id { get; set; }
		[Required]
		public Int32 Quantity { get; set; }
		[Required]
		public Decimal Price { get; set; }
		[Required]
		public Decimal Tax { get; set; }
		public Decimal? Discount { get; set; }
		[Required]
		[Display(Name="Order")]
		public int? OrderId { get; set; }
		[Required]
		[Display(Name="ProductDetail")]
		public int? ProductDetailId { get; set; }
		public string IdentityDescription { get; set; }
		// DropDownList
		public List<Order> OrderList { get; set; }
		public List<ProductDetail> ProductDetailList { get; set; }
	}
}
